﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.YouZanYun.Model.Dto.Plat
{
    public class OpenStock
    {
        /// <summary>
        /// 关联单据号，如在销售导致库存变化的场景下可以使用其它渠道的订单号（唯一不重复，支持自定义，支持英文和数字组合）
        /// </summary>
        public string source_order_no { get; set; }

        /// <summary>
        /// 创建时间，格式：yyyy-MM-dd HH:mm:ss
        /// </summary>
        public DateTime create_time { get; set; }

        private int? _operate_type = null;
        /// <summary>
        /// 操作类型， 
        /// 默认为空表示全量更新，1-增加； 2-减少
        /// </summary>
        public int? operate_type
        {
            get { return _operate_type; }
            set { _operate_type = value; }
        }

        private string _creator = "";
        /// <summary>
        /// 操作人
        /// </summary>
        public string creator
        {
            get { return _creator; }
            set { _creator = value; }
        }

        /// <summary>
        /// 商品明细
        /// </summary>
        public List<OrderItems> order_items { get; set; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string warehouse_code { get; set; }

        public string remark { get; set; }
    }
}
